package com.hhy.service;

import com.hhy.dao.UserDao;
import com.hhy.entity.User;

import java.util.List;

/**
 * @Description TODO
 * @Author hhy
 * @Date 2020/10/29 9:35
 */
public interface UserService extends UserDao{

    @Override
    Boolean login(Long phone, String password);

    @Override
    void registered(User user);

    //反序列
    List<User> getUserList();

    //通过手机号来查找用户
    User getUserByPhoneNumber(Long phoneNumber);

    //修改密码
    boolean modifyPassword(Long phone,String newPassword);

    //销户
    boolean deleteUser(Long phone);

    void generateExcel(User user);

    //充值
    Double addMola(Long phone,Double mola);

    //用户打电话，并且计算打电话花费了多少钱，通话时间
    String userCell(User user);
}
